Skip to content

[4pt] Better indentation examples #1858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Conversation

NickVolynkin
Copy link
Contributor

No description provided.

@NickVolynkin NickVolynkin force-pushed the better-indentation-examples branch from f6714fe to 96fd1fd Compare February 23, 2021 10:25
Example:

.. literalinclude:: _includes/indentation.rst
:language: rst

Resulting output:

.. include:: _includes/indentation.rst
.. include:: _includes/indentation.rst
:start-line: 1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines are counted from 0.

.. include:: _includes/indentation.rst
.. include:: _includes/indentation.rst
:start-line: 1
:end-line: -1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And they can be counted backwards. Just like in Python lists.

@NickVolynkin NickVolynkin added this to the Docs contribution guide milestone Feb 23, 2021
@NickVolynkin NickVolynkin changed the title Better indentation examples [2pt] Better indentation examples Feb 24, 2021
@NickVolynkin NickVolynkin changed the title [2pt] Better indentation examples Better indentation examples Feb 24, 2021
@NickVolynkin NickVolynkin merged commit 3689986 into latest Feb 24, 2021
@NickVolynkin NickVolynkin deleted the better-indentation-examples branch February 24, 2021 13:42
@NickVolynkin NickVolynkin changed the title Better indentation examples [4pt] Better indentation examples Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants